package com.wnxy.pms.member.config;

import com.wnxy.common.jwt.JwtTemplate;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JwtConfig {
    @Value("${auth.security.path}")
    private String path;
    @Value("${auth.security.keyStoreSecurity}")
    private String keyStoreSecurity;
    @Value("${auth.security.keySecurity}")
    private String keySecurity;
    @Value("${auth.security.alias}")
    private String alias;

    @Bean
    public JwtTemplate jwtTemplate(){
        JwtTemplate jwtTemplate =
                new JwtTemplate(path,keyStoreSecurity, keySecurity,alias);
        return jwtTemplate;
    }
}
